﻿namespace HRM.CORE
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Windows.Forms; using Common;

    public class xfmHelp : XtraForm
    {
        private IContainer components = null;
        private LabelControl labelControl1;
        private PanelControl panelControl1;
        private SimpleButton simpleButton1;
        private xfmHelpBackground xfm = new xfmHelpBackground();

        public xfmHelp()
        {
            this.xfm.Show();
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.labelControl1 = new LabelControl();
            this.simpleButton1 = new SimpleButton();
            this.panelControl1 = new PanelControl();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            base.SuspendLayout();
            this.labelControl1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.labelControl1.Appearance.Font = new Font("Arial", 13f, FontStyle.Bold);
            this.labelControl1.Appearance.ForeColor = Color.White;
            this.labelControl1.Appearance.Options.UseFont = true;
            this.labelControl1.Appearance.Options.UseForeColor = true;
            this.labelControl1.Appearance.Options.UseTextOptions = true;
            this.labelControl1.Appearance.TextOptions.WordWrap = WordWrap.Wrap;
            this.labelControl1.AutoSizeMode = LabelAutoSizeMode.None;
            this.labelControl1.Location = new Point(8, 5);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x26a, 0x41);
            this.labelControl1.TabIndex = 0;
            this.labelControl1.Text = "Bạn đang sử dụng cơ sở dữ liệu mẫu của chương tr\x00ecnh, kh\x00f4ng phải dữ liệu thật! Vui l\x00f2ng l\x00e0m theo c\x00e1c bước sau đ\x00e2y để cấu h\x00ecnh lại cơ sở dữ liệu trống!";
            this.simpleButton1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.simpleButton1.Appearance.BackColor = Color.Red;
            this.simpleButton1.Appearance.BackColor2 = Color.FromArgb(0xff, 0x80, 0x80);
            this.simpleButton1.Appearance.BorderColor = Color.White;
            this.simpleButton1.Appearance.Font = new Font("Arial", 16f, FontStyle.Bold);
            this.simpleButton1.Appearance.ForeColor = Color.White;
            this.simpleButton1.Appearance.GradientMode = LinearGradientMode.Vertical;
            this.simpleButton1.Appearance.Options.UseBackColor = true;
            this.simpleButton1.Appearance.Options.UseBorderColor = true;
            this.simpleButton1.Appearance.Options.UseFont = true;
            this.simpleButton1.Appearance.Options.UseForeColor = true;
            this.simpleButton1.ButtonStyle = BorderStyles.Simple;
            this.simpleButton1.Location = new Point(0x278, 20);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(0x7a, 0x23);
            this.simpleButton1.TabIndex = 1;
            this.simpleButton1.Text = "(x) Đ\x00f3ng";
            this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click);
            this.panelControl1.Anchor = AnchorStyles.Right | AnchorStyles.Left;
            this.panelControl1.Appearance.BackColor = Color.FromArgb(0, 0, 0xc0);
            this.panelControl1.Appearance.BackColor2 = Color.Transparent;
            this.panelControl1.Appearance.Options.UseBackColor = true;
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.labelControl1);
            this.panelControl1.Controls.Add(this.simpleButton1);
            this.panelControl1.Location = new Point(1, 0x5c);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x303, 0x158);
            this.panelControl1.TabIndex = 2;
            base.Appearance.BackColor = Color.FromArgb(0xe0, 0xe0, 0xe0);
            base.Appearance.Options.UseBackColor = true;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x304, 0x221);
            base.Controls.Add(this.panelControl1);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Name = "xfmHelp";
            base.ShowInTaskbar = false;
            this.Text = "xfmHelp";
            base.TransparencyKey = Color.FromArgb(0xe0, 0xe0, 0xe0);
            base.WindowState = FormWindowState.Maximized;
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            base.Close();
            this.xfm.Close();
        }
    }
}

